package cn.tedu.cake.mapper;

import cn.tedu.cake.pojo.entity.Shopping;
import cn.tedu.cake.pojo.vo.ShoppingListItemVO;
import cn.tedu.cake.pojo.vo.ShoppingStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author：DengWenZhi
 * @Package：cn.tedu.cake.mapper
 * @Project：cake1
 * @name：ShoppingMapper
 * @Date：2023/3/31 14:35
 * @Filename：ProductMapper
 */
@Repository
public interface ShoppingMapper {

    int insert(Shopping shopping);

    int insertBatch(List<Shopping> shoppingList);

    int deleteById(Integer id);

    int deleteByIds(Integer[] idList);

    int update(Shopping shopping);

    int count();

    ShoppingStandardVO getStandardById(Integer id);

    List<ShoppingListItemVO> list();

}
